package com.datalinkx.driver.dsdriver.jdbcdriver;

import com.datalinkx.driver.dsdriver.base.column.MetaColumn;
import com.datalinkx.driver.dsdriver.base.column.ReaderConnection;
import com.datalinkx.driver.dsdriver.base.reader.AbstractReader;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * @author 山顶洞人郑某
 * @className JdbcReader.java
 * @date 2025 03 16
 */
@Slf4j
@EqualsAndHashCode(callSuper = true)
@Data
//@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class JdbcReader extends AbstractReader {
    String username;
    String password;
    String where;
    int fetchSize;
    int queryTimeOut;
    /**
     * 字段名称集合
     */
    List<MetaColumn> column;
    /**
     * 连接信息
     */
    List<ReaderConnection> connection;
}
